package pack0820;
//八大封装类
public class DemoD {
    public static void a(){
        int  a1 = 9;
        Integer a2 = new Integer(9);
        System.out.println(a1);
        System.out.println(a2);

        String s1 = Integer.toBinaryString(15);//十进制转换成二进制
        String s2 = Integer.toHexString(15);//十进制转换成十六进制
        String s3 = Integer.toOctalString(15);//十进制转换成八进制
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);

        int a3 = Integer.parseInt("029");
        int a4 = Integer.parseInt("101",2);//将二进制的101转换成十进制
        int a5 = Integer.parseInt("101",8);//将八进制的101转换成十进制
        int a6 = Integer.parseInt("101",16);//将十六进制的101转换成十进制
        System.out.println(a3);
        System.out.println(a4);
        System.out.println(a5);
        System.out.println(a6);
    }
    public static void b (){
        /*
        int Integer
        byte Byte
        short Short
        long Long
        float Float
        double Double
        boolean Boolean
        char Character
        */
        double b = Double.parseDouble("89.67");
        System.out.println(b);
    }

    public static void main(String[] args) {
        b();
    }
}
